<!--got this info from database and displayed it -->

<h1>User Profile for User: <%=@user.email  %></h1>
<table border="1"> <tr><td>Order Delivery Name</td><td>Address</td><td>Email</td><td>Payment Type</td><td>Order Time/Date</td></tr>
  <% @orders.each do |order| %>
        <tr> <td><%=order.name%> </td>
          <td><%=order.address%> </td>
          <td><%=order.email%> </td>
          <td><%=order.pay_type%> </td>
          <td><%=order.created_at%> </td>
      </tr>
  <%end%>
    </table>